<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>FE_FETCH</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.opcodes.ext-stmt.html">EXT_STMT</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.opcodes.fe-reset.html">FE_RESET</a></div>
 <div class="up"><a href="internals2.opcodes.list.html">Opcode Descriptions and Examples</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="internals2.opcodes.fe-fetch" class="section">
 <h2 class="title">FE_FETCH</h2>
 <div class="section" id="internals2.opcodes.fe-fetch.code">
  <h2 class="title">PHP code</h2>
  <div class="example-contents">
   <div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">/*<br />&nbsp;*&nbsp;Fetch&nbsp;an&nbsp;element&nbsp;from&nbsp;iterator.&nbsp;&nbsp;If&nbsp;no&nbsp;element&nbsp;is&nbsp;available,&nbsp;jump&nbsp;to&nbsp;address.&nbsp;&nbsp;Followed&nbsp;by&nbsp;OP_DATA?<br />&nbsp;*&nbsp;opcode&nbsp;number:&nbsp;78<br />&nbsp;*/<br /></span><span style="color: #0000BB">$a&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">2</span><span style="color: #007700">,</span><span style="color: #0000BB">3</span><span style="color: #007700">);<br />foreach(</span><span style="color: #0000BB">$a&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$num</span><span style="color: #007700">){<br />&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;</span><span style="color: #0000BB">$num</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
  </div>

 </div>
 <div class="section" id="internals2.opcodes.fe-fetch.listing">
  <h2 class="title">PHP opcodes</h2>
  <p class="simpara">Function name: (null)</p>
  <p class="simpara">Compiled variables: !0=$a,  !1=$num </p>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>line</th><th>#</th><th>op</th>
      <th>fetch</th><th>ext</th><th>return</th>
      <th>operands</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>6</td><td>0</td>
      <td>INIT_ARRAY</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td>~0</td>
      <td>1</td>
     </tr>

     <tr>
      <td class="empty">&nbsp;</td><td>1</td>
      <td>ADD_ARRAY_ELEMENT</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td>~0</td>
      <td>2</td>
     </tr>

     <tr>
      <td class="empty">&nbsp;</td><td>2</td>
      <td>ADD_ARRAY_ELEMENT</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td>~0</td>
      <td>3</td>
     </tr>

     <tr>
      <td class="empty">&nbsp;</td><td>3</td>
      <td>ASSIGN</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td class="empty">&nbsp;</td>
      <td>!0,~0</td>
     </tr>

     <tr>
      <td>7</td><td>4</td>
      <td>FE_RESET</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td>$2</td>
      <td>!0,-&gt;11</td>
     </tr>

     <tr>
      <td class="empty">&nbsp;</td><td>5</td>
      <td>FE_FETCH</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td>$3</td>
      <td>$2,-&gt;11</td>
     </tr>

     <tr>
      <td class="empty">&nbsp;</td><td>6</td>
      <td>ZEND_OP_DATA</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td class="empty">&nbsp;</td><td>7</td>
      <td>ASSIGN</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td class="empty">&nbsp;</td>
      <td>!1,$3</td>
     </tr>

     <tr>
      <td>8</td><td>8</td>
      <td>PRINT</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td>~5</td>
      <td>!1</td>
     </tr>

     <tr>
      <td class="empty">&nbsp;</td><td>9</td>
      <td>FREE</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td class="empty">&nbsp;</td>
      <td>~5</td>
     </tr>

     <tr>
      <td>9</td><td>10</td>
      <td>JMP</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td class="empty">&nbsp;</td>
      <td>-&gt;5</td>
     </tr>

     <tr>
      <td class="empty">&nbsp;</td><td>11</td>
      <td>SWITCH_FREE</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td class="empty">&nbsp;</td>
      <td>$2</td>
     </tr>

     <tr>
      <td>10</td><td>12</td>
      <td>RETURN</td><td class="empty">&nbsp;</td>
      <td class="empty">&nbsp;</td><td class="empty">&nbsp;</td>
      <td>1</td>
     </tr>

    </tbody>
   
  </table>

 </div>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.opcodes.ext-stmt.html">EXT_STMT</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.opcodes.fe-reset.html">FE_RESET</a></div>
 <div class="up"><a href="internals2.opcodes.list.html">Opcode Descriptions and Examples</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
